<?php 
    include("template-user.php");

    openTemp(); 

?>

<style>
  .center {text-align: center; margin-left: auto; margin-right: auto; margin-bottom: auto; margin-top: auto;}
</style>
<title>Error 404</title>
<body>
  <div class="hero-unit center">
    <h1>Page Not Found <small><font face="Tahoma" color="red">Error 404</font></small></h1>
    <br />
    <p>The page you requested could not be found, either contact your webmaster or try again. Use your browsers <b>Back</b> button to navigate to the page you have prevously come from</p>
    <p><b>Or you could just press this neat little button:</b></p>
    <a id="back-last" href="#" class="btn btn-large btn-info"><i class="icon-home icon-white"></i> Take Me Home</a>
  </div>

<?php
    closeTemp();
?>

<script type="text/javascript">
  $(document).ready(function() {
    $('#back-last').click(function(){
        location.href = window.location.origin;
    });
  });
</script>